package com.ktjy.mapper;

import com.ktjy.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {
//    public int count();
//
//    public List<SysUser> getUserListTwo();

    public List<SysUser> getUsersByRealName(String realName);

    public List<SysUser> getUserListByPojo(SysUser sysUser);

    public List<SysUser> getUserListByMap(Map<String,Object> userMap);

    public List<SysUser> getUserListByParams(@Param("realName") String realName,@Param("roleId") int roleId);

    public List<SysUser> getUserListWithRoleName(SysUser sysUser);

    public List<SysUser> getUserListByRoleId(@Param("roleId") Integer roleId);

    public List<SysUser> getUserAndAddressesByUserId(@Param("userId") Integer userId);

    public List<SysUser> selectList(@Param("realName")String realName,@Param("roleId")Integer roleId);

    public List<SysUser> getUserByRoleIdArray(Integer[] roleId);

    public List<SysUser> getUserByRoleIdList(List<Integer> roleList);

    public List<SysUser> getUserByRoleIdMap(Map<String,Object> roleMap);

    public List<SysUser> selectPageList(@Param("realName")String realName,@Param("roleId")Integer roleId,@Param("pageBegin")Integer pageBegin,@Param("pageSize")Integer pageSize);
}
